package com.power.sifa.correction.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.correction.model.Crc_person_prov;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 关联省厅社矫人员 持久层(hibernate)
 */

public interface Crc_person_provDao extends JpaRepository<Crc_person_prov, Serializable>, JpaSpecificationExecutor<Crc_person_prov>, Repository<Crc_person_prov, Serializable>, Crc_person_provDaoCustom<Crc_person_prov, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Crc_person_prov s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
